/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.ieslaferreria.creditsintesis.logicgame.statemachineimpl;

import edu.ieslaferreria.creditsintesis.logicgame.StateMachine;

/**
 * Maquina de estados de los objetos estaticos,<<<<<<puerta<>)
 * @author Administrador
 */
public class StateMachineStaticObjects extends GenericStateMachine{
   /*states*/
    public static final int OPENED = 0;
    public static final int CLOSED= 1;
    public static final int ERROR = 99;

    /*activators*/
    public static final int WRONGKEY= 0;
    public static final int CORRECTKEY = 1;
      public static final int CLOSEACTION = 2;


    public int[][] statesDoor =
                        {{ERROR,ERROR,CLOSED},
                         {CLOSED,OPENED,CLOSED}};

   
  public void StateMachineStaticObjects (){
        this.stateMatrix = statesDoor;
/*at first the state will be always 1, meaning that the door is closed.*/
        this.state = CLOSED;

    }

}
